{include file="$AdminFullPath/skins/$DefaultSkin/header.tpl" title=foo}

<table width="100%">
  <tr>
    <td class="module_title" nowrap>
      <a href="index.php">{$SiteTitle}</a> &raquo; <a href="{$PHPSELF}?mod={$mod}">{$OrbitFAQTitle} </a>
    </td>
    <td class="action_buttons" nowrap>
      <a href="{$PHPSELF}?mod={$mod}&action=create"><img src="skins/{$DefaultSkin}/images/add.png" style="border: 0px; vertical-align: bottom;" alt="Create New User" title="Create New User"></a>
      <a href="{$PHPSELF}?mod={$mod}&action=createmany"><img src="skins/{$DefaultSkin}/images/addmany.png" style="border: 0px; vertical-align: bottom;" alt="Create Multiple Users" title="Create Multiple Users"></a>
    </td>
  </tr>
</table>
<br />

{if $message != ''}
<table width="100%" class="message_tbl">
  <tr>
    <td style="vertical-align: bottom;" width="20">
      <img src="skins/{$DefaultSkin}/images/notice.png">
    </td>
    <td class="message" nowrap>
      {$message}
    </td>
  </tr>
</table>
<br />
{/if}

<table cellspacing="1" class="index_body">
  <tr>
    <td class="row3 one">id</td>
    <td class="row3 two">name & login</td>
    <td class="row3 two" nowrap><center>status</center></td>
    <td class="row3 two" nowrap><center>last login</center></td>
    <td class="row3 two" nowrap><center>registered</center></td>
    <td class="row3 two" nowrap><center>access level</center></td>
    <td class="row3 two" colspan="5" nowrap><center>user actions</center></td>
  </tr>
  {section name=UserListing loop=$UserListing}
  <tr>
    <td class="row{$UserListing[UserListing].users_row} one">{$UserListing[UserListing].users_id}</td>
    <td class="row{$UserListing[UserListing].users_row} two">
      <h3>{$UserListing[UserListing].users_fullname}</h3>
      {$UserListing[UserListing].users_login}<br />
    </td>
    <td class="row{$UserListing[UserListing].users_row} two" nowrap>
      {if $UserListing[UserListing].users_status == '1'}
        <a href="{$PHP_SELF}?mod={$mod}&user={$UserListing[UserListing].users_id}&action=chstatus&posted=0">disable</a>
      {else}
        <a href="{$PHP_SELF}?mod={$mod}&user={$UserListing[UserListing].users_id}&action=chstatus&posted=1">enable</a>
      {/if}
    </td>
    <td class="row{$UserListing[UserListing].users_row} one">{if $UserListing[UserListing].users_last_login == '0000-00-00 00:00:00'}No Loggin{else}{$UserListing[UserListing].users_last_login|date_format}{/if}</td>
    <td class="row{$UserListing[UserListing].users_row} one">{$UserListing[UserListing].users_register_date|date_format}</td>
    <td class="row{$UserListing[UserListing].users_row} one">{$UserListing[UserListing].users_accesslvl}</td>
    <td class="row{$UserListing[UserListing].users_row} one"><a href="{$PHP_SELF}?mod={$mod}&action=modify&user={$UserListing[UserListing].users_id}">modify</a></td>
    <td class="row{$UserListing[UserListing].users_row} one" nowrap>
      {if $UserView != '1'}
        <a href="{$PHP_SELF}?mod={$mod}&user={$UserListing[UserListing].users_id}">view details</a>
      {else}
        <a href="{$PHP_SELF}?mod={$mod}">hide details</a>
      {/if}

    </td>
    <td class="row{$UserListing[UserListing].users_row} one" nowrap><a href="{$PHP_SELF}?mod={$mod}&action=resetpwd&user={$UserListing[UserListing].users_id}">reset password</a></td>
    <td class="row{$UserListing[UserListing].users_row} one" nowrap>
      {if $UserListing[UserListing].users_accesslvl == 'admin'}
        <a href="{$PHP_SELF}?mod={$mod}&action=chaccesslvl&user={$UserListing[UserListing].users_id}&posted=user">set as user</a></td>
      {else}
        <a href="{$PHP_SELF}?mod={$mod}&action=chaccesslvl&user={$UserListing[UserListing].users_id}&posted=admin">set as admin</a></td>
      {/if}
    </td>
    <td class="row{$UserListing[UserListing].users_row} one"><a href="{$PHP_SELF}?mod={$mod}&action=delete&user={$UserListing[UserListing].users_id}">delete</a></td>
  </tr>
  {if $UserView == '1'}
  <tr>
    <td class="row{$UserListing[UserListing].users_row} one">
    </td>
    <td class="row{$UserListing[UserListing].users_row} two" colspan="10">
      <table width="100%">
        <tr>
          <td width="50" nowrap>Phone:</td>
          <td nowrap>{$UserListing[UserListing].users_phone}</td>
        </tr>
        <tr>
          <td width="50" nowrap>MSN:</td>
          <td nowrap>{$UserListing[UserListing].users_msn}</td>
        </tr>
        <tr>
          <td width="50" nowrap>City:</td>
          <td nowrap>{$UserListing[UserListing].users_city}</td>
        </tr>
        <tr>
          <td width="50" nowrap>Country:</td>
          <td nowrap>{$UserListing[UserListing].users_country}</td>
        </tr>
        <tr>
          <td width="50" nowrap>Occupation:</td>
          <td nowrap>{$UserListing[UserListing].users_occupation}</td>
        </tr>
        <tr>
          <td width="50" valign="top" nowrap>Groups:</td>
          <td nowrap>{$UserListing[UserListing].users_groups}</td>
        </tr>
      </table>
    </td>
  </tr>
  {/if}
  {/section}
</table>

{include file="$AdminFullPath/skins/$DefaultSkin/footer.tpl"}